SHELL = /bin/sh

TARGETS = hnd_gen.out
INCLUDE = src
OBJECT =  main_loop.o trim.o suffix.o strcp.o function.o RaR.o \
	  form_wor.o ya_form.o subj.o future.o parad.o n_excp.o    \
	  nou_utils.o pro_utils.o verb_utils.o adj_utils.o word_gen.o\
	  fix.o exption.o get_prdtbl_entry.o  adj_handle_yA_huA.o \
	  found_ascii_alphabet.o iscii2wx.o notIsciiMark.o
CC = gcc
CFLAGS = -g -c

all: $(TARGETS)

hnd_gen.out     : ${OBJECT}
	   	$(CC) -g -o hnd_gen.out ${OBJECT}
main_loop.o       : ${INCLUDE}/main_loop.c ${INCLUDE}/tam.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/main_loop.c ${INCLUDE}/tam.c
fix.o       : ${INCLUDE}/fix.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/fix.c
word_gen.o       : ${INCLUDE}/word_gen.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/word_gen.c
trim.o      : ${INCLUDE}/trim.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/trim.c
suffix.o    : ${INCLUDE}/suffix.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/suffix.c
strcp.o     : ${INCLUDE}/strcp.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/strcp.c
function.o  : ${INCLUDE}/function.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/function.c
RaR.o       : ${INCLUDE}/RaR.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/RaR.c
form_wor.o  : ${INCLUDE}/form_wor.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/form_wor.c
ya_form.o   : ${INCLUDE}/ya_form.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/ya_form.c
subj.o      : ${INCLUDE}/subj.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/subj.c
future.o    : ${INCLUDE}/future.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/future.c
parad.o     : ${INCLUDE}/parad.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/parad.c
n_excp.o    : ${INCLUDE}/n_excp.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/n_excp.c
nou_utils.o : ${INCLUDE}/nou_utils.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/nou_utils.c
pro_utils.o : ${INCLUDE}/pro_utils.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/pro_utils.c
verb_utils.o: ${INCLUDE}/verb_utils.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/verb_utils.c
adj_utils.o : ${INCLUDE}/adj_utils.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/adj_utils.c
adj_handle_yA_huA.o : ${INCLUDE}/adj_handle_yA_huA.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/adj_handle_yA_huA.c
exption.o   : ${INCLUDE}/exption.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/exption.c
get_prdtbl_entry.o    : ${INCLUDE}/get_prdtbl_entry.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/get_prdtbl_entry.c

notIsciiMark.o   : ${INCLUDE}/notIsciiMark.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/notIsciiMark.c
found_ascii_alphabet.o   : ${INCLUDE}/found_ascii_alphabet.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/found_ascii_alphabet.c
iscii2wx.o   : ${INCLUDE}/iscii2wx.c
	   	$(CC) $(CFLAGS) ${INCLUDE}/iscii2wx.c

.PHONY: all

clean:
	rm -f $(TARGETS) $(OBJECT) tam.o
